using Microsoft.AspNetCore.Mvc;

namespace PiggyBankCashFlowApi.Ext;

public static class ControllerBaseExt
{
    public static ObjectResult InternalServerError(this ControllerBase controllerBase)
    {
        return controllerBase.StatusCode(StatusCodes.Status500InternalServerError, "Internal server error");
    }
}